﻿<UserControl x:Class="Swan.SwanWakeUp.Controls.Settings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:jas="clr-namespace:ContentControl3DLib;assembly=ContentControl3DLib"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <StackPanel Orientation="Vertical" >
            <Label Content="Inställningar" />
            <CheckBox x:Name="WakeUpComputer" IsChecked="{Binding WakeUpComputer, Mode=TwoWay}">Väck datorn vid alarm (kräver lösenord)</CheckBox>
            <Separator></Separator>
            <Label Content="Url för yr (sök stad på yr.no och klistra in här)" />
            <TextBox x:Name="YrUrl" Text="{Binding YrURL, Mode= TwoWay}"></TextBox>
            <Separator />
            <Label x:Name="Alarmsong" Content="Alarm song" />
            <CheckBox IsChecked="{Binding UseCustomSong}">Use my own song</CheckBox>
            <StackPanel Orientation="Horizontal">
                <TextBox x:Name="FileNameTextBox" Text="{Binding CustomSongPath, Mode=TwoWay}" IsEnabled="{Binding UseCustomSong, Mode=OneWay}" Width="200" />
                <Button Content="Browse" HorizontalAlignment="Left" Name="button1" Click="button1_Click" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
                <Button Content="TestRun" Margin="5" Click="Button_Click_2"/>
                <Button Content="Kill" Margin="5" Click="Button_Click_3"/>
                <Button Content="Save" Click="Button_Click" Command="jas:ContentControl3D.RotateCommand" Margin="5"/>
                <Button Content="Cancel" Click="Button_Click_1" Command="jas:ContentControl3D.RotateCommand" Margin="5"/>
            </StackPanel>
            
        </StackPanel>
    </Grid>
</UserControl>
